package com.yuxinyang.memory.admin.user.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.yuxinyang.memory.admin.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 余秀良
 * @since 2019-08-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class MemoryUser extends BaseEntity implements Serializable {
    public static final String ID = "id";
    public static final String AGE = "age";
    public static final String GENDER = "gender";
    public static final String PHONE = "phone";
    public static final String NAME = "name";
    public static final String NICKNAME = "nickname";
    public static final String AVATAR = "avatar";
    public static final String IS_DELETE = "is_del";
    public static final String EXTRAS = "extras";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_TIME = "update_time";
    public static final String REMARK = "remark";
    private static final long serialVersionUID = -8158293263636613693L;
    /**
     * 用户年龄
     */
    @TableField("age")
    private Integer age;
    /**
     * 0：女 1：男
     */
    @TableField("gender")
    private Boolean gender;
    /**
     * 用户手机号码
     */
    @TableField("phone")
    private String phone;
    /**
     * 用户姓名
     */
    @TableField("name")
    private String name;
    /**
     * 用户昵称
     */
    @TableField("nickname")
    private String nickname;
    /**
     * 用户头像
     */
    @TableField("avatar")
    private String avatar;
    /**
     * 0：未删除，1：已删除
     */
    @TableField("is_del")
    private Boolean del;
    /**
     * 扩展字段
     */
    @TableField("extras")
    private String extras;

}
